﻿/*
#------------------------------------------------------------------------------
#-- Program Name:	[dbo].[DirectoryExists]
#-- Purpose:		Calls a CLR function to determine directory existance
#--	Last Update:	04/17/2012
#--					For a complete history - please review comments in Version
#--					control.
#------------------------------------------------------------------------------
*/
CREATE FUNCTION [dbo].[DirectoryExists]
(
	@filePath		nvarchar(4000)
)
RETURNS bit
WITH EXECUTE AS CALLER
AS
EXTERNAL NAME [centraldba_clr].[UserDefinedFunctions].[DirectoryExists]